using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Bussiness.Entity
{
                

     public class PT_ServiceBillDetailEntity:AF_ORM.CORE.BaseEntity
    {
         public PT_ServiceBillDetailEntity()
         {
             tableName = "PT_ServiceBillDetail";


			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","AgentPrice","Giá trị tính tiền công thợ","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","Amount","Amount","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","Bill_NO","Bill_NO","string",20,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","Comment","Comment","string",1024,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","CreatedBy","CreatedBy","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","CreatedDate","CreatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","Id","Id","Guid",0,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","IntCode","IntCode","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","IsDeleted","IsDeleted","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","OutPaid","OutPaid","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","Price","Giá bán","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","SaleOffMoney","SaleOffMoney","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","SaleOffReason","Bảo hành : BH, Thiện chí : TC","string",2,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","ServiceCode","ServiceCode","string",10,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","ServiceId","ServiceId","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","UpdatedBy","UpdatedBy","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ServiceBillDetail","UpdatedDate","UpdatedDate","DateTime",0,false,true,false,false,"","",""));
         }
       //properties
                    
		 protected double m_AgentPrice;
		 protected double m_Amount;
		 protected string m_Bill_NO;
		 protected string m_Comment;
		 protected string m_CreatedBy;
		 protected DateTime m_CreatedDate;
		 protected Guid m_Id;
		 protected int m_IntCode;
		 protected bool m_IsDeleted;
		 protected double m_OutPaid;
		 protected double m_Price;
		 protected double m_SaleOffMoney;
		 protected string m_SaleOffReason;
		 protected string m_ServiceCode;
		 protected int m_ServiceId;
		 protected string m_UpdatedBy;
		 protected DateTime m_UpdatedDate;

		 public double AgentPrice

          { 
                get { 
                    return m_AgentPrice;}

                set{m_AgentPrice=value;

                    GetField("AgentPrice").Set();
                    GetField("AgentPrice").IsNull=(value == null);           
                    }
          }
		 public double Amount

          { 
                get { 
                    return m_Amount;}

                set{m_Amount=value;

                    GetField("Amount").Set();
                    GetField("Amount").IsNull=(value == null);           
                    }
          }
		 public string Bill_NO

          { 
                get { 
                    return m_Bill_NO;}

                set{m_Bill_NO=value;

                    GetField("Bill_NO").Set();
                    GetField("Bill_NO").IsNull=(value == null);           
                    }
          }
		 public string Comment

          { 
                get { 
                    return m_Comment;}

                set{m_Comment=value;

                    GetField("Comment").Set();
                    GetField("Comment").IsNull=(value == null);           
                    }
          }
		 public string CreatedBy

          { 
                get { 
                    return m_CreatedBy;}

                set{m_CreatedBy=value;

                    GetField("CreatedBy").Set();
                    GetField("CreatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime CreatedDate

          { 
                get { 
                    return m_CreatedDate;}

                set{m_CreatedDate=value;

                    GetField("CreatedDate").Set();
                    GetField("CreatedDate").IsNull=(value == null);           
                    }
          }
		 public Guid Id

          { 
                get { 
                    return m_Id;}

                set{m_Id=value;

                    GetField("Id").Set();
                    GetField("Id").IsNull=(value == null);           
                    }
          }
		 public int IntCode

          { 
                get { 
                    return m_IntCode;}

                set{m_IntCode=value;

                    GetField("IntCode").Set();
                    GetField("IntCode").IsNull=(value == null);           
                    }
          }
		 public bool IsDeleted

          { 
                get { 
                    return m_IsDeleted;}

                set{m_IsDeleted=value;

                    GetField("IsDeleted").Set();
                    GetField("IsDeleted").IsNull=(value == null);           
                    }
          }
		 public double OutPaid

          { 
                get { 
                    return m_OutPaid;}

                set{m_OutPaid=value;

                    GetField("OutPaid").Set();
                    GetField("OutPaid").IsNull=(value == null);           
                    }
          }
		 public double Price

          { 
                get { 
                    return m_Price;}

                set{m_Price=value;

                    GetField("Price").Set();
                    GetField("Price").IsNull=(value == null);           
                    }
          }
		 public double SaleOffMoney

          { 
                get { 
                    return m_SaleOffMoney;}

                set{m_SaleOffMoney=value;

                    GetField("SaleOffMoney").Set();
                    GetField("SaleOffMoney").IsNull=(value == null);           
                    }
          }
		 public string SaleOffReason

          { 
                get { 
                    return m_SaleOffReason;}

                set{m_SaleOffReason=value;

                    GetField("SaleOffReason").Set();
                    GetField("SaleOffReason").IsNull=(value == null);           
                    }
          }
		 public string ServiceCode

          { 
                get { 
                    return m_ServiceCode;}

                set{m_ServiceCode=value;

                    GetField("ServiceCode").Set();
                    GetField("ServiceCode").IsNull=(value == null);           
                    }
          }
		 public int ServiceId

          { 
                get { 
                    return m_ServiceId;}

                set{m_ServiceId=value;

                    GetField("ServiceId").Set();
                    GetField("ServiceId").IsNull=(value == null);           
                    }
          }
		 public string UpdatedBy

          { 
                get { 
                    return m_UpdatedBy;}

                set{m_UpdatedBy=value;

                    GetField("UpdatedBy").Set();
                    GetField("UpdatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime UpdatedDate

          { 
                get { 
                    return m_UpdatedDate;}

                set{m_UpdatedDate=value;

                    GetField("UpdatedDate").Set();
                    GetField("UpdatedDate").IsNull=(value == null);           
                    }
          }

}
}
